reftests: Add a reftest with signals
authorBenjamin Otte <otte@redhat.com>
Fri, 30 May 2014 02:33:06 +0000 (04:33 +0200)
committerBenjamin Otte <otte@redhat.com>
Sat, 31 May 2014 03:19:40 +0000 (05:19 +0200)
testsuite/reftests/Makefile.am
testsuite/reftests/window-show-contents-on-map.ref.ui [new file with mode: 0644]
testsuite/reftests/window-show-contents-on-map.ui [new file with mode: 0644]

index a5c940d3454ef6e7de0edeab17dae19e7680d34c..7b4b1e3e10f0c44fe982e4a9914ffd53bbdb8873 100644 (file)
@@ -330,6 +330,8 @@ testdata = \
        window-default-size.ui \
        window-height-for-width.ref.ui \
        window-height-for-width.ui \
+       window-show-contents-on-map.ref.ui \
+       window-show-contents-on-map.ui \
        $(NULL)
 
 EXTRA_DIST +=                  \
diff --git a/testsuite/reftests/window-show-contents-on-map.ref.ui b/testsuite/reftests/window-show-contents-on-map.ref.ui
new file mode 100644 (file)
index 0000000..d96ec68
--- /dev/null
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Generated with glade 3.18.1 -->
+<interface>
+  <requires lib="gtk+" version="3.12"/>
+  <object class="GtkWindow" id="window1">
+    <property name="width_request">200</property>
+    <property name="height_request">200</property>
+    <property name="can_focus">False</property>
+    <property name="type">popup</property>
+    <child>
+      <object class="GtkLabel" id="label1">
+        <property name="visible">True</property>
+        <property name="can_focus">False</property>
+        <property name="label" translatable="yes">This label is only shown when the window is mapped. So the window does its first size allocation without the label being visible and has to resize.</property>
+        <property name="wrap">True</property>
+        <property name="width_chars">20</property>
+        <property name="max_width_chars">20</property>
+      </object>
+    </child>
+  </object>
+</interface>
diff --git a/testsuite/reftests/window-show-contents-on-map.ui b/testsuite/reftests/window-show-contents-on-map.ui
new file mode 100644 (file)
index 0000000..def0bf9
--- /dev/null
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Generated with glade 3.18.1 -->
+<interface>
+  <requires lib="gtk+" version="3.12"/>
+  <object class="GtkWindow" id="window1">
+    <property name="can_focus">False</property>
+    <property name="type">popup</property>
+    <signal name="map" handler="gtk_widget_show" object="label1" after="yes" swapped="yes"/>
+    <child>
+      <object class="GtkLabel" id="label1">
+        <property name="can_focus">False</property>
+        <property name="label" translatable="yes">This label is only shown when the window is mapped. So the window does its first size allocation without the label being visible and has to resize.</property>
+        <property name="width_chars">20</property>
+        <property name="wrap">True</property>
+      </object>
+    </child>
+  </object>
+</interface>